-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor(@angular/build): use new Angular SSR API #28283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f0582ff
to
26e473c
Compare
27a2824
to
f9d95dc
Compare
} = await loadEsmModuleFromMemory('./main.server.mjs'); | ||
const angularServerApp = getOrCreateAngularServerApp(); | ||
const response = await angularServerApp.render( | ||
new Request(new URL(url, 'http://local-angular-prerender'), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: http://local-angular-prerender
is only temporary
07de060
to
4046058
Compare
4046058
to
24cf06a
Compare
packages/angular/build/src/builders/application/execute-post-bundle.ts
Outdated
Show resolved
Hide resolved
return response?.text(); | ||
})() | ||
.then((content) => { | ||
if (typeof content !== 'string') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does undefined
here mean there was an error or that the URL wasn't supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not supported.
This commit introduces several key updates: - Updates Vite middleware to utilize the new SSR API. - Refactors prerendering, app-shell, and route extraction to align with the new rendering API. - Generates manifest files required by the new SSR API. **Note:** This is primarily a refactor; new features and improvements will be implemented in future updates.
…gularServerApp` This change is necessary to prevent NgModule-based rendering from failing with JIT in development mode.
24cf06a
to
470a775
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit introduces several key updates:
Note: This is primarily a refactor; new features and improvements will be implemented in future updates.